package com.quanshu.shop.person.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.quanshu.exchange.R;
import com.quanshu.shop.person.entity.AddressBaseEntity;

import java.util.List;

/**
 * 作者  李哲
 * 创建时间 2018/8/2
 * 邮箱 lizhetongliao@163.com
 * 说明
 **/
public class AddressBaseAdapter extends BaseQuickAdapter<AddressBaseEntity.DataEntity, BaseViewHolder> {
    public AddressBaseAdapter(@Nullable List<AddressBaseEntity.DataEntity> data) {
        super(R.layout.item_base_address, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AddressBaseEntity.DataEntity item) {
        helper.setText(R.id.base_address_txt, item.getArea_name());
        helper.addOnClickListener(R.id.base_address_txt);
    }
}
